<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据字典</title>
<script language="javascript" type="text/javascript" src="/bfs/common/scripts/dynamicImportJs.js"></script>
<script type="text/javascript">
	/***初始化，启用公共控件***/
	load([ "jquery-1.11.2", "blockui-2.70.0","permission", "easyUI-1.4.5", "dataTypeCtrl","basicCommon","validate"]);
</script>
</head>
<body class="bfsbody">
<script type="text/javascript">
importScript("scripts/dataDictionary.js");
</script>
	<div class="n-main">
		<div class="n-content n-boxsd marlf5" id="n-chart">
			<div class="n-dttitle n-boxsd wdth">
				<strong><span>字典编码：</span></strong>
				<input class="easyui-textbox" id="searchGeneralCode" />
				<strong><span class="marlf10">字典名称：</span></strong>
				<input class="easyui-textbox" id="searchGeneralName" />
				<strong><span class="marlf10">字典类型：</span></strong>
				<select id="searchcategoryName" class="cmslt" style="width: 130px;"></select>
				<input id="search-btn" class="n-cmbtn n-gr marlf10" value="查询" type="button" />
				<div style="float: right;margin-right: 15px;" id="toolBar">
					<a href="#" class="easyui-linkbutton" id="addType" data-options="iconCls:'icon-addUser',plain:'true',size:'large',iconAlign:'left'">添加类型</a>
					<a href="#" class="easyui-linkbutton" id="add" data-options="iconCls:'icon-addUser',plain:'true',size:'large',iconAlign:'left'">添加</a>
					<a href="#" class="easyui-linkbutton" id="deletes" data-options="iconCls:'icon-deleteUser',plain:'true',size:'large',iconAlign:'left'">批量删除</a>
				</div>
			</div>
			
			<div class="right-content n-boxsd" style="margin-top: 8px;">
				<div class="list">
					<table id="listDataEx1" style="width: 100%;"></table>
				</div>
				<div class="nolist" style="display: none;">
				<div class="nolist-content">
					<div class="nolist-con"></div>
					<span>对不起，系统无相关记录...</span>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<div id="createDataDictionaryDiv" class="easyui-window" style="width: 430px;" modal="true" title="新增数据字典" minimizable="false" collapsible="false" resizable="false" maximizable="false"
		closed="true">
		<div class="window-div">
			<form method="POST" id="createDataDictionaryForm">
				<table class="window-table">
					<tr class="window-tr">
						<td class="window-td">类型名称：</td>
						<td>
							<select id="selcategoryName" class="cmslt" name="categoryClass" data-options="required:true,validType:'maxLength[50]'" style="width: 220px;"></select>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">字典编码：</td>
						<td>
							<input id="addGeneralCode" class="easyui-textbox"  name="generalCode" data-options="required:true,validType:'lengthAndNoSpecialCharacters[50]'" style="width: 220px"></input>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">字典名称：</td>
						<td>
							<input id="addGeneralName" class="easyui-textbox" name="generalName" data-options="required:true,validType:'lengthAndSpecialCharacters[500]'" style="width: 220px"></input>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">排序：</td>
						<td>
							<input class="easyui-numberbox" name="orderNum" data-options="min:0,max:1000000,validType:'maxLength[8]'" style="width: 220px;"></input>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td" >状态：</td>
						<td colspan="3">
							<input type="radio" name="cstatus" value="0" /> 停用 <input type="radio" name="cstatus" value="1" checked="checked" /> 启用
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">备注：</td>
						<td>
							<input id="addRemark" class="easyui-textbox" data-options="multiline:true,validType:'maxLength[50]'" name="remark" style="width: 220px;height:60px;"></input>
						</td>
					</tr>
					</tr>
				</table>
			</form>
			<div class="op-btn">

				<input id="submitCreateDataDictionary" class="n-cmbtn n-gr marlf20" value="保存" type="button" />
				<input id="cancelCreateDataDictionary" class="n-cmbtn btn-border marlf20" value="取消" type="button" />

			</div>
		</div>
	</div>
	
	<div id="createDataDictionaryCategoryDiv" class="easyui-window" style="width: 360px;" modal="true" title="新增数据字典类型" minimizable="false" collapsible="false" resizable="false" maximizable="false"
		closed="true">
		<div class="window-div">
			<form method="POST" id="createDataDictionaryCategoryForm">
				<table class="window-table">
					<tr class="window-tr">
						<td class="window-td">类型编码：</td>
						<td>
							<input class="easyui-textbox" id="addCategoryClass" name="categoryClass" data-options="required:true,validType:'lengthAndNoSpecialCharacters[50]'" style="width: 160px"></input>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">类型名称：</td>
						<td>
							<input class="easyui-textbox" id="addCategoryName" name="categoryName" data-options="required:true,validType:'lengthAndSpecialCharacters[50]'" style="width: 160px"></input>
						</td>
					</tr>
				</table>
			</form>
			<div class="op-btn">
				<input id="submitCreateDataDictionaryCategory" class="n-cmbtn n-gr marlf20" value="保存" type="button" />
				<input id="cancelCreateDataDictionaryCategory" class="n-cmbtn btn-border marlf20" value="取消" type="button" />
			</div>
		</div>
	</div>
	
	<div id="editDataDictionaryDiv" class="easyui-window" style="width: 430px;" modal="true" title="修改数据字典" minimizable="false" collapsible="false" resizable="false" maximizable="false"
		closed="true">
		<div class="window-div">
			<form method="POST" id="editDataDictionaryForm">
				<table class="window-table">
					<tr class="window-tr">
						<td class="window-td">类型名称：</td>
						<td>
								<select id="editCategoryName" class="cmslt" name="categoryClass" data-options="required:true,validType:'maxLength[50]'" style="width: 220px;"></select>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">字典编码：</td>
						<td>
								<input id="editGeneralCode" class="easyui-textbox" name="generalCode" data-options="required:true,validType:'maxLength[50]'" style="width: 220px"></input>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">字典名称：</td>
						<td>
							<input id="editGeneralName" class="easyui-textbox" validtype="typecode" name="generalName" data-options="required:false,validType:'maxLength[500]'" style="width: 220px"></input>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">排序：</td>
						<td>
							<input class="easyui-numberbox" name="orderNum" data-options="min:0,max:1000000,validType:'maxLength[8]'" style="width: 220px;"></input>
						</td>
					</tr>
						<tr class="window-tr">
						<td class="window-td">状态：</td>
						<td colspan="3">
							<input type="radio" name="cstatus" value="0" /> 停用 <input type="radio" name="cstatus" value="1"/> 启用
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">备注：</td>
						<td>
							<input id="editRemark" class="easyui-textbox" data-options="multiline:true,validType:'maxLength[50]'" name="remark" style="width: 220px;height: 60px;"></input>
						</td>
					</tr>
				</table>
			</form>
			<div class="op-btn">
				<input id="submitEditDataDictionary" class="n-cmbtn n-gr marlf20" value="保存" type="button" />
				<input id="cancelEditDataDictionary" class="n-cmbtn btn-border marlf20" value="取消" type="button" />
			</div>
		</div>
	</div>
</body>
</html>